{extend name="public/base" /}
{block name="title"}会员列表{/block}

{block name="content"}
<h2 class="sub-header">会员列表</h2>[ <a href="<?php echo url('user/add'); ?>">添加会员</a> ] [ <a href="<?php echo url('user_money/index'); ?>">余额记录</a> ] [ <a href="<?php echo url('user_rank/index'); ?>">会员等级</a> ]<br><br>

<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
<thead><tr class="info">
<th>ID</th>
<th>头像</th>
<th>用户名</th>
<th>性别</th>
<th>余额</th>
<th>积分</th>
<th>佣金</th>
<th>注册时间</th>
<th>状态</th>
<th>管理</th>
</tr></thead>
<tbody>
<?php if($list){foreach($list as $row){ ?><tr>
<td><?php echo $row['id']; ?></td>
<td><img src="<?php echo $row['head_img']; ?>" style="width:24px;height:24px;" onerror="this.src='<?php echo http_host(); ?>/images/no_pic.jpg'"></td>
<td><?php if($row['user_name']){echo $row['user_name'];}else{echo $row['mobile'];} ?></td>
<td><?php echo $row['sex_text']; ?></td>
<td><?php echo $row['money']; ?></td>
<td><?php echo $row['point']; ?></td>
<td><font color="red"><?php echo $row['commission']; ?></font></td>
<td><?php echo date('Y-m-d H:i:s',$row['add_time']); ?></td>
<td><a href="{:url('index')}?status=<?php echo $row['status']; ?>"><?php echo $row['status_text']; ?></a></td>
<td><a href="<?php echo url('user_money/add').'?user_id='.$row['id']; ?>">人工充值</a> | <a href="<?php echo url('user_money/index').'?user_id='.$row['id']; ?>">余额记录</a> | <a href="<?php echo url('user/edit'); ?>?id=<?php echo $row['id']; ?>">修改</a></td>
</tr><?php }} ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->

<form id="searcharc" class="navbar-form" action="{:url('index')}" method="get">
<div class="form-group"><input type="text" name="keyword" id="keyword" class="form-control required" placeholder="搜索关键词..."></div>
<button type="submit" class="btn btn-info" value="Submit">搜索一下</button></form>

<div class="backpages">{$page}</div>
{/block}